interface ImBase {
    id?: number;
	topicId?: number | undefined;
	unread?: number | undefined;
	name?: string;
	avatar?: string;
	messageType?: string;
	hasMentioned?: boolean;
	lastMsg?: {
		content: string;
		id: number;
		sendId: number;
		sendTime: string;
		type: number;
		[keys: string]: any;
	};
}
export interface ImCountEntity {
    unRead: number; // 未读
    mention: number; // @我
    create: number; // 创建
    join: number; // 参与
	[keys: string]: number;
}
// 会话列表
export interface chatListEntity extends ImBase {
	[keys: string]: any;
}

// 会话详情
export interface chatDetailEntity extends ImBase {
    fromData?: string; // 表单数据，可选，类型为字符串或 null
    totalUser?: number; // 会话总人数，可选，类型为整数或 null
    status?: number; // 会话状态，可选，类型为整数或 null
	app?: string;
	userIds?: number[];
	creatorId?: number;
	users?: {
		avatar?: string;
		id?: number;
		name: string;
	}
	isCreator?: boolean
	isQuit?: boolean
	[keys: string]: any;
	email: string;
}

// 当前群聊信息
export interface currentGroupInfoEntity extends ImBase {
	[keys: string]: any;
}

// 发送内容
export interface SendParamsEntity {
	content: string
	extraInfo?: {
		ext?: string,
		fileName?: string,
		id?: string,
		originalFilename?: string,
		size?: number,
		url?: string,
	} | null
	mentionedIds: number[]
	topicId: number | undefined
	type: number
}

// 应用消息
export interface SystemDetailEntity {
	id: string | number;
    type: number;
    sendTime: string;
    title?: string;
    coverUrl?: string;
    intro?: string;
    content?: string;
	isLast?: boolean;
    [key: string]: any;
}
